<template>
  <div class="about-content">
    <div class="content">
      <p class="title">公司简介</p>
      <div class="first-content">
        <div class="first-content-left">
          <img
            :src="about.image"
          >
        </div>
        <div class="first-content-right">
          <p class="first-content-right-text">{{ about.title}}</p>
          <p
            class="first-content-right-text-p"
            v-html="about.content"
          > </p>
        </div>
      </div>
    </div>
    <div class="content bgColor">
      <p class="title">企业文化</p>
      <div class="second-content">
        <div class="second-content-left">
          <p class="second-content-p">公司理念：以人为本，开拓创新</p>
          <p class="second-content-p">公司文化：专业化，规范化，素质化，品牌化</p>
          <p class="second-content-p">公司宗旨：服务成就品牌，创新体现未来</p>
        </div>
        <div class="second-content-right">
          <p class="second-content-p">公司准则：人是唯一，人是全部</p>
          <p class="second-content-p">公司愿景：派遣员工最佳雇主，客户首选合作伙伴</p>
          <p class="second-content-p">公司目标：打造珠三角人力资源服务第一品牌</p>
        </div>
      </div>
    </div>
    <div class="content">
      <p class="title">荣誉资质</p>
      <div class="third-content">
        <el-carousel
          :interval="4000"
          type="card"
          height="thirdHeight"
        >
          <el-carousel-item
            v-for="(item,index) in banner"
            :key="item.image+index"
          >
            <img
              :src="item.image"
              width="100%"
              height="100%"
            >
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
    <div class="content bgColor newHeight">
      <p class="title">组织架构</p>
      <div class="fourth-content">
        <img
          src="../assets/image/架构内容.png"
          width="100%"
          height="100%"
        >
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: {
    data: Object
  },
  data() {
    return {
      about: {},
      contact: {},
      banner: [],
      thirdHeight:''
    }
  },
  watch: {
    data(n) {
      this.contact = n.contact;
      this.about = n.about;
      this.banner = n.honor;
    }
  },
  mounted () {
  },
}
</script>

<style scoped lang="scss">
.about-content {
  width: 100%;
}
.content {
  width: 100%;
  height: 600px;
  display: inline-block;
}
.bgColor {
  background: rgba(0, 0, 0, 0.03);
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 14px;
  opacity: 0.75;
  line-height: 200px;
  margin: 0;
}

.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
.title {
  font-size: 32px;
  font-family: PingFangSC-Semibold, PingFang SC;
  font-weight: 600;
  color: rgba(0, 0, 0, 1);
  line-height: 45px;
  margin-top: 60px;
  text-align: center;
}
.first-content {
  width: 1200px;
  height: 300px;
  margin: 0 auto;
  margin-top: 50px;
}
.first-content-left {
  width: 530px;
  height: 350px;
  float: left;
  img{
    width:100%;
    height:100%;
    object-fit: cover;
  }
}
.first-content-right {
  width: 530px;
  height: 300px;
  float: left;
  margin-left:40px;
  margin-left: 2%;
}
.first-content-right-text {
  font-size: 18px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.8);
  line-height: 25px;
  margin-bottom: 30px;
}
.first-content-right-text-p {
  font-size: 12px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 24px;
}
.second-content {
  width: 1200px;
  height: 300px;
  margin: 0 auto;
  margin-top: 50px;
  border: 1px solid rgba(151, 151, 151, 1);
}
.second-content-left {
  width: calc(50% - 1px);
  height: 300px;
  float: left;
  border-right: 1px solid rgba(151, 151, 151, 1);
}
.second-content-right {
  width: 50%;
  height: 300px;
  float: left;
}
.second-content-p {
  font-size: 18px;
  font-family: PingFangSC-Medium, PingFang SC;
  font-weight: 500;
  color: rgba(255, 52, 52, 1);
  text-align: center;
  line-height: 100px;
}
.third-content {
  width: 1200px;
  height: 300px;
  margin: 0 auto;
  margin-top: 50px;
}
.fourth-content {
  width: 1200px;
  height: 400px;
  margin: 0 auto;
  margin-top: 50px;
}
.bottom-content {
  width: 1200px;
  height: 300px;
  margin: 0 auto;
  margin-top: 50px;
}
.fifth-content-left {
  width: 50%;
  height: 300px;
  float: left;
}
.fifth-content-left-p {
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 27px;
  margin-top: 20px;
}
.fifth-content-right {
  width: 40%;
  height: 300px;
  float: left;
  margin-left: 2%;
}
.second-p {
  font-size: 16px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.6);
  line-height: 20px;
  margin-left: 75px;
  margin-top: 0;
}
.newHeight {
  height: 650px;
}
@media screen and (max-width: 800px) {
  .about-content{
    .content{
      height: auto;
      overflow: hidden;
      padding:15px 0;
      &:nth-of-type(3){
        display: none;
      }
      .title{
        margin-top:0;
        font-size:1.2rem;
      }
      .first-content{
        width:100%;
        height:auto;
        overflow: hidden;
        margin-top:15px;
        box-sizing: border-box;
        padding:0 15px;
        .first-content-left{
          width:100%;
          height:auto;
          overflow: hidden;
        }
        .first-content-right{
          width:100%;
          height:auto;
          margin:0;
          .first-content-right-text{
            font-size:1rem;
            margin:15px 0;
          }
        }
      }
      .second-content{
        width:100%;
        height:auto;
        overflow: hidden;
        margin-top:15px;
        box-sizing: border-box;
        padding:15px;
        .second-content-left,
        .second-content-right{
          width:100%;
          border:0;
          height:auto;
          overflow: hidden;
          .second-content-p{
            line-height: 1.8;
          }
        }
      }
      .fourth-content{
        margin-top:15px;
        width:100%;
        height:auto;
        overflow: hidden;
        box-sizing: border-box;
        padding:0 15px;
      }
    }
  }

}
</style>
